package com.example.bean;

import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

public class School implements ISchool {
    Klass class1;
    Student student;
    public School(Klass class1,Student student){
        this.class1 = class1;
        this.student = student;
    }
    @Override
    public void ding(){

        System.out.println("Class1 have " + this.class1.getStudents().size() + " students and one is " + this.student);

    }

}
